package com.sinosoft.cnmuseum.dao;


import com.sinosoft.cnmuseum.entity.flownum;
import com.sinosoft.commontools.record.Record;
import com.sinosoft.dbtools.operate.single.DBSingleTableActorMgr;


public class flownumDao extends BaseDao{

	public flownumDao() {
		this.actor = DBSingleTableActorMgr.getDBSingleTableActor("flownum");
	}
	
	public int getNewflowid(){
		Record r = new Record();
		r.add(flownum.FLOWSTATUS, 1);
		this.insert(r);
		int flowid = r.getIntValue(flownum.FLOWID);
		return flowid;
	}

}
